import http from '@/api';
import { ADMIN_PREFIX_V2 } from '@/api/helper/prefix';

//保存入库信息
export const saveHouse = params => {
  return http.post(`${ADMIN_PREFIX_V2}/common_house/saveHouse`, params);
};

//获取入库列表
export const getHouseList = params => {
  return http.get(`${ADMIN_PREFIX_V2}/common_house/getHouseList`, params);
};

//获取入库详情
export const getHouseDetail = params => {
  return http.get(`${ADMIN_PREFIX_V2}/common_house/getHouseDetail`, params);
};

//删除入库信息
export const deleteHouse = params => {
  return http.post(`${ADMIN_PREFIX_V2}/common_house/deleteHouse`, params);
};

//更新入库信息
export const updateHouse = params => {
  return http.post(`${ADMIN_PREFIX_V2}/common_house/updateHouse`, params);
};

//审核
export const auditHouse = params => {
  return http.post(`${ADMIN_PREFIX_V2}/common_house/auditHouse`, params);
};
